package com.jsbs.iam.user.mapper;

import com.jsbs.iam.user.entity.IamAdminRoleOrgInfo;
import com.jsbs.iam.user.vo.IamAdminRoleApplyInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @BelongsProject: iam
 * @BelongsPackage: com.jsbs.iam.user.mapper
 * @Author: WangJiYuan
 * @Description: TODO
 * @Version: 2023-01-18  11:26
 */
@Mapper
@Repository
public interface AdminRoleMapper {
    /**
     * 根据角色查询组织权限
     *
     * @param roleCode
     * @param companyCode
     * @return
     */
    List<IamAdminRoleOrgInfo> getAdminRoleOrgInfo(@Param("roleCode")String roleCode, @Param("companyCode") String companyCode);

    /**
     * 根据角色查询应用权限
     * @param roleCode
     * @param companyCode
     * @return
     */
    List<IamAdminRoleApplyInfoVo> getAdminRoleApplyInfo(@Param("roleCode")String roleCode, @Param("companyCode") String companyCode);
}
